package Text9;

//密码的自动生成器：密码由大写字母/小写字母/数字组成，生成六位随机密码
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;

public class Register {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        int a1 = sc.nextInt();
//        int a2 = sc.nextInt();
//        int a3 = sc.nextInt();
//        int a4 = sc.nextInt();
//        double a5 = sc.nextDouble();
//        double a6 = sc.nextDouble();
//       double a7 = sc.nextDouble();
//        double a8 = sc.nextDouble();


       double a11 = sc.nextDouble();
      // double a11 = sc.nextDouble();1
        /********* Begin *********/
        System.out.println(Math.round(a11));

        System.out.println(Math.floor(a11));

        /********* End *********/
    }
}
